window.onload = function () {
    // 搜索功能实现
    document.getElementById('searchInput').addEventListener('input', function () {
        const searchTerm = this.value.trim().toLowerCase();
        document.querySelectorAll('.file-item').forEach(item => {
            const fileName = item.getAttribute('data-file').toLowerCase();
            const isVisible = fileName.includes(searchTerm);
            item.style.display = isVisible ? 'block' : 'none';
        });
    });
}